package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgScDynamicScoring;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JgScDynamicScoringMapper extends BaseMapper<JgScDynamicScoring> {

    /**
     * 获取生产企业的最新检查结果信息
     * @param companyId
     * @return
     */
    List<JgScDynamicScoring> selectByCompanyId(@Param("companyId") Long companyId);

    JgScDynamicScoring selectByContentIdAndCompanyId(@Param("contentId")long contentId, @Param("companyId")Long companyId);

    int batchInsert(@Param("list")  List<JgScDynamicScoring> insertList);

    int batchUpdate(@Param("list") List<JgScDynamicScoring> updateList);

}